
@include('layouts._header')
<link type="text/css" rel="stylesheet" href="{{ asset('css/ext.css') }}" />
<meta name="_token" content="{{ csrf_token() }}"/>
<!--End Header End--> 
<div class="i_bg bg_color">
    <!--Begin 用户中心 Begin -->
	
        <div class="i_bg bg_color">
    <!--Begin 用户中心 Begin -->
		<div class="m_content">
   		<div class="m_left">
        	<div class="left_n">管理中心</div>
            <div class="left_m">
            	<div class="left_m_t t_bg1">订单中心</div>
                <ul>
                	<li><a href="Member_Order.html">我的订单</a></li>
                    <li><a href="Member_Address.html">收货地址</a></li>
                    <li><a href="#">缺货登记</a></li>
                    <li><a href="#">跟踪订单</a></li>
                </ul>
            </div>
            <div class="left_m">
            	<div class="left_m_t t_bg2">会员中心</div>
                <ul>
                  <li><a href="{{url('personal')}}">用户信息</a></li>
                  <li><a href="{{url('personal_update')}}">信息修改</a></li>
                    <li><a href="Member_Collect.html">我的收藏</a></li>
                    <li><a href="Member_Msg.html">我的留言</a></li>
                    <li><a href="Member_Links.html">推广链接</a></li>
                    <li><a href="#">我的评论</a></li>
                </ul>
            </div>
            <div class="left_m">
            	<div class="left_m_t t_bg3">账户中心</div>
                <ul>
                	<li><a href="{{url('personal_safe')}}">账户安全</a></li>
                    <li><a href="Member_Packet.html">我的红包</a></li>
                    <li><a href="Member_Money.html">资金管理</a></li>
                </ul>
            </div>
            <div class="left_m">
            	<div class="left_m_t t_bg4">分销中心</div>
                <ul>
                	<li><a href="Member_Member.html">我的会员</a></li>
                    <li><a href="Member_Results.html">我的业绩</a></li>
                    <li><a href="Member_Commission.html">我的佣金</a></li>
                    <li><a href="Member_Cash.html">申请提现</a></li>
                </ul>
            </div>
        </div>
		<div class="m_right">
            <p></p>
            <div class="mem_tit">信息修改</div>
                <form @submit.prevent="submit" method="POST">
                <table border="0" style="width:880px;"  cellspacing="0" cellpadding="0">
                    <tr >
                        <td><input type="hidden" name="user_id"  v-model="inputtext.user_id"  value="{{$res['user_id']}}"></td>
                  </tr>
                  <tr height="45">
                    <td width="80" align="right">用户名 &nbsp; &nbsp;</td>
                    <td><input type="text" name="user_name" value="{{$res['user_name']}}" v-model="inputtext.user_name" class="add_ipt" style="width:180px;" />&nbsp; <font color="#ff4e00">*</font></td>
                  </tr>
                  <tr height="45">
                    <td align="right">性&nbsp; &nbsp;别 &nbsp; &nbsp;</td>
                    <td><input type="radio" value="1" name="user_sex" v-model="inputtext.user_sex"  />男&nbsp; 
                        <input type="radio" value="0" name="user_sex" v-model="inputtext.user_sex"  />女&nbsp; </td>
                  </tr>
                  <tr height="45">
                    <td align="right">生&nbsp; &nbsp;日 &nbsp; &nbsp;</td>
                    <td>
                    <!-- <p><select class="sel_year"  rel="1995"></select>年
                        <select class="sel_month" rel="1"></select>月
                        <select class="sel_day" rel="11"></select>日</p> -->
                        <input type="date" name="user_birth_date"  v-model="inputtext.user_birth_date" >
                    </td>
                  </tr>
                  <tr height="50">
                    <td>&nbsp;</td>
                    <td><input type="submit" value="确认修改" class="btn_tj" /></td>
                  </tr>
                </table>
                </form>
           
        </div>
    </div>
    <!--End Footer End -->    
</div>
<div class="i_bg bg_color">

    @yield('main')

    <!--Begin Footer Begin -->
        @include('layouts._footer')
    <!--End Footer End -->
</div>

<script src="{{ mix('js/app.js') }}"></script>
<script src="js/jquery.js"></script>
<script src="js/birthday.js"></script>
<script>  
$(function () {
	$.ms_DatePicker({
            YearSelector: ".sel_year",
            MonthSelector: ".sel_month",
            DaySelector: ".sel_day"
    });
	$.ms_DatePicker();
}); 
</script> 
<script type = "text/javascript">

new Vue({ 
      el: '.m_right', 
      data: { 
          inputtext:{} 
      }, 
      methods: { 
          submit: function() { 
            var data = this.inputtext;
            console.log(data)
            // axios.post('http://shopapi.cn/api/auth/login', {
            //   user_name: data.user_name,
            //   user_pwd: data.user_pwd
            // })
            // .then(function (response) {
            //     layer.msg(response.data.msg,{icon:response.data.code,time:800},function(){
            //       if(response.data.msg == "登录成功"){
            //         axios.post('/do_login', {
            //           token: response.data.data.token,
            //         },).then(
            //           res => location.href="{{url('/')}}"
            //         );
            //       }
            //     });
            // })
            // .catch(function (error) {
            //   alert(error.data.msg)
            // });
            
          } 
      }, 
  }) 
</script>
</body>

</html>
